package com.zhangliuliu.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhangliuliu.bean.AreaBean;

@TableName("t_group")
public class GroupBean {
    /**
     * 小班实体
     */
    @TableId(value = "pk_groid",type = IdType.AUTO)
    private int groupId;
    @TableField("gro_name")
    private String groupName;
    @TableField("gro_leader")
    private String leader;
    @TableField("gro_tell")
    private String tell;
    @TableField("gro_num")
    private Integer  num;

    @TableField(exist = false)
    private AreaBean areaBean;
    public GroupBean() {
    }

    public GroupBean(String groupName, String leader, String tell, Integer num,int areaId) {
        this.groupName = groupName;
        this.leader = leader;
        this.tell = tell;
        this.num = num;
      this.areaBean=  new AreaBean();
      areaBean.setAreaId(areaId);

    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }

    public String getTell() {
        return tell;
    }

    public void setTell(String tell) {
        this.tell = tell;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public AreaBean getAreaBean() {
        return areaBean;
    }

    public void setAreaBean(AreaBean areaBean) {
        this.areaBean = areaBean;
    }

    @Override
    public String toString() {
        return "GroupBean{" +
                "groupId=" + groupId +
                ", groupName='" + groupName + '\'' +
                ", leader='" + leader + '\'' +
                ", tell='" + tell + '\'' +
                ", num=" + num +
                ", areaBean=" + areaBean +
                '}';
    }
}
